package com.cndw.kungfu.config;

import java.nio.charset.Charset;

/**
 * 系统固定配置 常量,类型.不变的配置
 * 
 * @author fantadust
 * @date 2011-5-2 下午01:49:15
 */
public final class Constants {
	/**
	 * 杀怪战斗
	 */
	public static final int battle_pve = 1;
	/**
	 * 决斗战斗
	 */
	public static final int battle_learn = 2;
	/**
	 * 刺杀战斗
	 */
	public static final int battle_slaughter = 4;
	/**
	 * 竞技场战斗
	 */
	public static final int battle_pvp = 8;
	/**
	 * 侍从战斗
	 */
	public static final int battle_livery = 16;
	/**
	 * 帮派战
	 */
	public static final int battle_siege = 32;
	/**
	 * pve战斗,无奖励类型
	 */
	public static final int battle_noaward = 64;
	/**
	 * pvp战斗类型不消耗
	 */
	public static final int battle_pvpNoCost = 128;
	/**
	 * 跨服战斗
	 */
	public static final int battle_pvpCross = 256;

	public static boolean isPvpType(int type) {
		return type == battle_learn || type == battle_slaughter || type == battle_pvp || type == battle_livery || type == battle_siege
				|| type == battle_pvpNoCost;
	}

	/**
	 * 野外
	 */
	public static final int CITY_FIELD = 2;

	/**
	 * 主城
	 */
	public static final int CITY_MAIN = 1;

	/**
	 * 副本
	 */
	public static final int CITY_UNDER = 3;
	/**
	 * 塞外
	 */
	public static final int CITY_WALL = 4;

	/**
	 * 秘境
	 */
	public static final int CITY_FAM = 16;
	/**
	 * 帮派战副本
	 */
	public static final int CITY_UNION = 8;

	/**
	 * 围城的rootid
	 */
	public static final int siegeWarRootId = 70;
	/**
	 * 副本的rootId
	 */
	public static final int cityUnderRootId = 80;
	/**
	 * 秘境的父场景id
	 */
	public static final int cityFarmRootId = 66;
	/**
	 * 公共group key
	 */
	public static final String COMMRADIO = "COMMRADIO";
	public static final String COMMSPLIT = ",";
	/**
	 * 通用数据集合最大下标
	 */
	public static final int commIntSignMax = Integer.MAX_VALUE - 147483647;
	/**
	 * 事件类型默认
	 */
	public static final int eventTypeNormal = 0;
	/**
	 * 道具兑换事件
	 */
	public static final int eventTypeExchange = 1;
	/**
	 * 竞技场事件
	 */
	public static final int eventTypePvp = 2;
	/**
	 * 添加好友事件
	 */
	public static final int eventTypeFriend = 4;
	/**
	 * 侍从系统互动信息
	 */
	public static final int eventTypeLivery = 8;
	/**
	 * 神树果实信息
	 */
	public static final int eventTypeFruit = 16;
	/**
	 * 华山论剑下注消息
	 */
	public static final int eventTypeWarBet = 32;
	/**
	 * 物品吃药的应用id
	 */
	public static final int Goods_App_Drug = 101;
	/**
	 * 语言包文件
	 */
	public static final String LANGUAGE_FILE = "language.properties";

	/**
	 * 默认分页数
	 */
	public static final int PAGE_SIZE = 20;

	/**
	 * 银两支付
	 */
	public static final int PAY_ASSET = 1 << 4;
	/**
	 * 金币支付
	 */
	public static final int PAY_GOLD = 1 << 0;
	/**
	 * 礼券支付
	 */
	public static final int PAY_GOLDTICKE = 1 << 1;
	/**
	 * 折扣支付
	 */
	public static final int PAY_Discount = 1 << 2;
	/**
	 * 商城积分支付
	 */
	public static final int PAY_VipScore = 1 << 3;
	/**
	 * 每级获得的点数
	 */
	public static final int playerFreePoint = 6;

	/**
	 * 角色最高等级
	 */
	public static final int playerMaxLevel = 120;
	/**
	 * 正常
	 */
	public static final int playerState0_normal = 0;
	/**
	 * 在战斗
	 */
	public static final int playerState1_battle = battle_pve;
	/**
	 * 切磋决斗
	 */
	public static final int playerState2_learn = battle_learn;
	/**
	 * 刺杀
	 */
	public static final int playerState4_slaughter = battle_slaughter;
	/**
	 * 流放状态
	 */
	public static final int playerState16_banish = 16;//4
	/**
	 * vip奖励加成
	 */
	public static final int playerState32_vipAdd = 32;//5
	/**
	 * 摆摊状态
	 */
	public static final int playerState64_market = 64;//6
	/**
	 * 交易状态
	 */
	public static final int playerState128_trade = 128;//7
	/**
	 * 押镖状态
	 */
	public static final int playerState256_dart = 256;//8
	/**
	 * 挂机
	 */
	public static final int playerState512_battleAuto = 512;//9
	/**
	 * 扫荡状态
	 */
	public static final int playerState1024_aiUndercity = 1024;//10
	/**
	 * 关闭声音
	 */
	public static final int playerState2048_closeSound = 2048;//11
	
	/**
	 * 开启酒宴
	 */
	@Deprecated
	public static final int playerState4096_winneOpen = 4096;//12
	
	/**
	 * 杀死全部怪物
	 */
	public static final int sceneKeyCleanMonster = 1;
	/**
	 * 通过物品打开开关
	 */
	public static final int sceneKeyOpenBody = 4;

	public static final int sceneKeyClearOrBody = 5;
	/**
	 * 杀死指定怪物
	 */
	public static final int sceneKeySpecifyMonster = 2;
	/**
	 * 技能区别道具界限
	 */
	public static final int skillDifferenceGoods = 1000000;
	/**
	 * 药师恢复血量
	 */
	public static final int skillAddBlood = 101;
	/**
	 * 自身吸血
	 */
	public static final int skillGotBlood = 102;
	/**
	 * 自身吸蓝
	 */
	public static final int skillGotMagic = 103;

	/**
	 * 加命中
	 */
	public static final int skillPassiveTypeHit = 1;
	/**
	 * 加闪避
	 */
	public static final int skillPassiveTypeDodge = 2;
	/**
	 * 加暴击
	 */
	public static final int skillPassiveTypeCrit = 3;
	/**
	 * 加韧性
	 */
	public static final int skillPassiveTypeTough = 4;
	/**
	 * 加攻击
	 */
	public static final int skillPassiveTypeAttack = 5;
	/**
	 * 加防御
	 */
	public static final int skillPassiveTypeDefense = 6;
	/**
	 * 加血
	 */
	public static final int skillPassiveTypeHp = 7;
	/**
	 * 加蓝
	 */
	public static final int skillPassiveTypeMp = 8;
	/**
	 * 加攻速
	 */
	public static final int skillPassiveTypeSpeed = 9;

	public static final Charset charset = Charset.forName("utf-8");

	/**
	 * 等级排行称号
	 */
	public static final int titleLevelRanking = 1;
	/**
	 * 战力排行称号
	 */
	public static final int titleAttackRanking = 2;
	/**
	 * 徒弟排行称号
	 */
	public static final int titleDiscipleRanking = 3;
	/**
	 * 帮派排行称号
	 */
	public static final int titleUnionRanking = 4;
	/**
	 * 宝鉴排行称号
	 */
	public static final int titleCollectRanking = 5;
	/**
	 * 千层塔排行称号
	 */
	public static final int titleSCpRanking = 6;
	/**
	 * 答题称号
	 */
	public static final int titleQuiz = 7;
	/**
	 * 升级称号
	 */
	public static final int titleLevelUp = 8;
	/**
	 * 装备升星称号
	 */
	public static final int titleUpStar = 9;
	/**
	 * 购买徒弟称号
	 */
	public static final int titleDiscipleRein = 10;
	/**
	 * 好友称号
	 */
	public static final int titleFriend = 11;
	/**
	 * 声望称号
	 */
	public static final int titlePrestige = 12;
	/**
	 * 神兵阵通关称号
	 */
	public static final int titleSCpPass = 13;
	/**
	 * 宠物称号
	 */
	public static final int titlePet = 14;
	/**
	 * 华山的称号
	 */
	public static final int titleWar = 17;
	/**
	 * 宠物最大的等级
	 */
	public static final int maxLevelPet = 80;

	public static final int tokenPvp1 = 1 << 1;

	public static final int tokenPvp2 = 1 << 2;

	public static final int tokenBoss = 1 << 3;
	/**
	 * 检查聊天
	 */
	public static final int inspectChat = 1;
	/**
	 * 检查战斗挂机
	 */
	public static final int inspectBattle = 2;
	/**
	 * 是否使用腾讯验证码
	 */
	public static final int inspectQQCode = 4;
	/**
	 * 是否检查httpclient过期
	 */
	public static final int inspectClientExpired = 8;
	/**
	 * 是否检查聊天角色等级
	 */
	public static final int inspectChatLevel = 16;
	/**
	 * 是否进行日志的清理
	 */
	public static final int inspectClearLog = 32;
	/**
	 * 是否开启过滤字检测
	 */
	public static final int inspectFilter = 64;
	/**
	 * 注册的地方是否检测
	 */
	public static final int inspectFilterReg = 128;
	/**
	 * 是否开放屏蔽权限
	 */
	public static final int inspectShieldFlag = 256;
	
	/**
	 * 经验找回 - 押镖
	 */
	public static final int expRet_dart = 1;
	/**
	 * 经验找回 - 神兵阵
	 */
	public static final int expRet_sbz = 2;
	/**
	 * 经验找回 - 远古塞外
	 */
	public static final int expRet_wall = 3;
	/**
	 * 经验找回 - BOSS殷天正
	 */
	public static final int expRet_boosYtz = 4;
	/**
	 * 经验找回 - BOOS大地暴熊
	 */
	public static final int expRet_boosBear = 5;
	/**
	 * 经验找回 - BOSS崔玉环
	 */
	public static final int expRet_boosCyh = 6;
	/**
	 * 经验找回 - 帮派找
	 */
	public static final int expRet_unionBat = 7;
	/**
	 * 经验找回 - 双倍打坐
	 */
	public static final int expRet_sit = 8;
	/**
	 * 经验找回 - 答题
	 */
	public static final int expRet_quiz = 9;
	/**
	 * 战功找回 - 门派战
	 */
	public static final int achiveRet_warpvp= 10;
	/**
	 * 战功找回 - 襄阳保卫战
	 */
	public static final int achiveRet_cb  = 11;
	/**
	 * 通用逗号
	 */
	public static final String commDouHao = ",";
}
